package test.hxy.mongoSchoolSimple.dao;

import org.springframework.data.domain.Pageable;
import test.hxy.mongoSchoolSimple.model.Department;
import org.springframework.data.mongodb.repository.MongoRepository;


import java.util.List;

public interface DepartmentOneDao extends MongoRepository<Department, Object> {
	List<Department> findByVacanciesBetween(Integer num1, Integer num2);
    List<Department> findByHeadcountLessThanOrHeadcountGreaterThan(Integer num1, Integer num2);
    List<Department> findByNameIn(List<String> names);
    List<Department> findByTypeIn(Integer type, Pageable pageable);
//    List<Department> findByLeaderName(String name);
    List<Department> findAll();

}
